package com.adfframeworks.labs.domain;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

public class Community {

	public final static int PRIVATE = 0;
	public final static int PUBLIC_RESTRICTED = 1;
	public final static int PUBLIC_UNRESTRICTED = 2;	
	
	private Integer id;
	
	@NotNull
	@Size(max = 45)
	private String name;

	@NotNull
	private Integer owner;

	@Size(max = 45)
	private String keyword;

	@NotNull
	@Max(value=2)
	private Integer visibility;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getOwner() {
		return owner;
	}

	public void setOwner(Integer owner) {
		this.owner = owner;
	}

	public String getKeyword() {
		return keyword;
	}

	public void setKeyword(String keyword) {
		this.keyword = keyword;
	}

	public Integer getVisibility() {
		return visibility;
	}

	public void setVisibility(Integer visibility) {
		this.visibility = visibility;
	}
}
